import request from '../network/request';

// 注册
export const register = (query) => {
    return request({
        url: 'index.php/index/Login/register',
        method: 'POST',
        data: query
    });
};

// 登陆
export const login = (query) => {
    return request({
        url: 'index.php/index/Login/login',
        method: 'POST',
        data: query
    });
};

// 重置密码
export const forhot = (query) => {
    return request({
        url: 'index.php/index/Login/forhot',
        method: 'POST',
        data: query
    });
};

// 个人信息
export const index = (query) => {
    return request({
        url: 'index.php/index/Login/index',
        method: 'POST',
        data: query
    });
};

// 注册核实
export const check = (query) => {
    return request({
        url: 'index.php/index/Login/check',
        method: 'POST',
        data: query
    });
};

// 个人信息修改
export const update = (query) => {
    return request({
        url: 'index.php/index/Login/update',
        method: 'POST',
        data: query
    });
};